<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }
        html,body{
            width: 100%;
            height: 100%;
        }

        .content {
            width: 100%;
            height: 100%;
            display: flex;
            display: flexbox;
            flex-wrap:wrap;
            justify-content:space-around;
            align-items: center;
        }

        .bigBox{
            position: relative;
            display: inline-block;
        }

        .videoCanvas {
            background-color: #000;
        }

        .loading {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #fff;
            background: linear-gradient(to right, #fff 10%, rgba(255, 255, 255, 0) 50%);
            animation: load3 .5s infinite linear;
            position: absolute;
            left: 50%;
            top: 50%;
            display: none;
            margin-top: -20px;
            margin-left: -20px;

        }

        @keyframes load3 {
            0% {
                -webkit-transform: rotate(0deg);
                transform: rotate(0deg);
            }

            100% {
                -webkit-transform: rotate(360deg);
                transform: rotate(360deg);
            }
        }

        .loading:before {
            width: 50%;
            height: 50%;
            background: #fff;
            border-radius: 100% 0 0 0;
            position: absolute;
            top: 0;
            left: 0;
            content: '';
        }

        .loading:after {
            background: #000;
            width: 75%;
            height: 75%;
            border-radius: 50%;
            content: '';
            margin: auto;
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
        }
    </style>
</head>

<body>
    <div class='content'></div>



    <script src="js/webGL.js"></script>
    <script src="js/comm.js"></script>
    <script src="js/index.js"></script>

    <script> 
        function getQueryVariable(variable) {
            var query = window.location.search.substring(1);
            var vars = query.split("&");
            for (var i = 0; i < vars.length; i++) {
                var pair = vars[i].split("=");
                if (pair[0] == variable) {
                    return pair[1];
                }
            }
            return ;
        }
        let url = '';
        let did = getQueryVariable('did')
        let videoType = getQueryVariable('vtype')
        let dataType = getQueryVariable('dtype')

        let a = new Palyer(url, did, videoType,dataType)
        
    </script>
</body>

</html>